package com.tencent.bugly.beta;

import com.tencent.bugly.proguard.y;

/* compiled from: BUGLY */
/* loaded from: classes.dex */
public class UpgradeInfo {
    public String apkMd5;
    public String apkUrl;
    public long fileSize;
    public String id;
    public String imageUrl;
    public String newFeature;
    public long popInterval;
    public int popTimes;
    public long publishTime;
    public int publishType;
    public String title;
    public int updateType;
    public int upgradeType;
    public int versionCode;
    public String versionName;

    public UpgradeInfo(y yVar) {
        this.id = "";
        this.title = "";
        this.newFeature = "";
        this.publishTime = 0L;
        this.publishType = 0;
        this.upgradeType = 1;
        this.popTimes = 0;
        this.popInterval = 0L;
        this.versionName = "";
        if (yVar != null) {
            this.id = yVar.m;
            this.title = yVar.a;
            this.newFeature = yVar.b;
            this.publishTime = yVar.c;
            this.publishType = yVar.d;
            this.upgradeType = yVar.g;
            this.popTimes = yVar.h;
            this.popInterval = yVar.i;
            this.versionCode = yVar.e.c;
            this.versionName = yVar.e.d;
            this.apkMd5 = yVar.e.i;
            this.apkUrl = yVar.f.b;
            this.fileSize = yVar.f.d;
            this.imageUrl = yVar.l.get("IMG_title");
            this.updateType = yVar.p;
        }
    }
}
